cmake_minimum_required(VERSION 3.8)
cmake_policy(SET CMP0069 NEW)


if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AVR")
    add_subdirectory("atmega328p")
elseif ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "Cortex-M7")
    add_subdirectory("NUCLEO-H743ZI2")
elseif ("${TOOLCHAIN_PREFIX}" STREQUAL "")
    add_subdirectory("host")
endif()

# any platform, as there is no timer
add_executable(ping-pong-throughput ping-pong-throughput.cpp)
target_link_libraries(ping-pong-throughput rotor_light)
